From: Adel Gadllah Date: Fri, 1 Mar 2013 17:52:02 +0000 (+0100) Subject: st-widget: Don't add hidden actors to the paint volume X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4609 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ea55c36a3a2f1abcaa8e202e0f67a29ed807cebe;p=gnome-shell.git st-widget: Don't add hidden actors to the paint volume We are not painting them anyway. --- diff --git a/src/st/st-widget.c b/src/st/st-widget.c index 65de2722b..42992ece7 100644 --- a/src/st/st-widget.c +++ b/src/st/st-widget.c @@ -791,6 +791,9 @@ st_widget_get_paint_volume (ClutterActor *self, { const ClutterPaintVolume *child_volume; + if (!CLUTTER_ACTOR_IS_VISIBLE (child)) + continue; + child_volume = clutter_actor_get_transformed_paint_volume (child, self); if (!child_volume) return FALSE;